package ink.metoo.gude.module.websocket.domain.vo

import com.fasterxml.jackson.annotation.JsonIgnore
import ink.metoo.gude.module.websocket.domain.PrivateMessageBody
import ink.metoo.gude.module.websocket.domain.ToPrivateType

class PrivateConnectStatisticsVO : PrivateMessageBody(ToPrivateType.STATISTICS) {

    var online: Int = 0
    var anonymous: Int = 0
    var users: List<InnerUser> = emptyList()

    data class InnerUser(
        val id: Long? = null,
        var account: String? = null,
        val nickname: String? = null,
        val email: String? = null,
        val avatar: String? = null,
        @JsonIgnore
        val connect: Int = 0
    )

}